<!DOCTYPE html>
<html lang="zh-CN">


<head>
    <meta charset="UTF-8">
    
    <link rel="apple-touch-icon" sizes="76x76" href="/null">
    <link rel="icon" type="image/png" href="/null">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5">
    <title>水中鱼</title>
    
    <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
    
    
    <meta name="description" content="记录日常与技术笔记">
    <meta name="author" content="zsh0409">
    <meta name="keywords" content="php,thinkphp,vue,element-ui,elementui,element-plus,elementplus,mysql">
    
    <style>


    
    :root{
        --shadow-color: rgba(0,0,0,0.2);
        --sec-shadow: rgba(0,0,0,0.03);
        --shadow-hover-color: rgba(0,0,0,0.28);
        --first-text-color: #475b6d;
        --second-text-color: #37475b;
        --third-text-color: #858585;
        --default-text-color: #505050;
        --default-link-color: #007bff;
        --link-color: #000000;
        --second-link-color: #4F9BFA;
        --code-color:rgba(27,31,35,.05);
        --post-bkg-color: #fff;
        --page-bkg-color: #f2f5f8;
        --nav-a-hover-color: #3498db;
        --post-sec-text-color: #718096;
        --sec-bkg: #f2f5f8;
        --color-mode: 'light';
        --bkg-h: rgba(255,255,255,0.6);
        --bkg-m: #e1e4e8;
        --home-title-color: #4169E1;
        --shadow: 0 4px 10px rgba(0,2,4,0.06),0 0 1px rgba(0,2,4,0.11);
        --hr-color: #ddd;
        --bg-t: #f4f4f4;
        --nav-bkg: rgba(255,255,255,0.6);
    }

@media (prefers-color-scheme: dark) {
  :root {
    --color-mode: 'dark';
  }

  :root:not([data-theme]) {
    --first-text-color: hsla(0,0%,100%,0.92);
    --second-text-color: hsla(0,0%,100%,0.86);
    --third-text-color: #a7a9ad;
    --default-text-color: #505050;
    --default-link-color: #1589e9;
    --link-color: #000000;
    --second-link-color: #30a9de;
    --post-bkg-color: #252d38;
    --page-bkg-color: #181c27;
    --nav-a-hover-color: #3498db;
    --post-sec-text-color: #a7a9ad;
    --sec-bkg: #364151;
    --bkg-h: rgba(255,255,255,0.2);
    --bkg-m: rgba(255,255,255,0.1);
    --home-title-color: rgb(226, 82, 90);
    --code-color:#3e4b5e;
    --shadow: none;
    --hr-color: #718096;
    --bg-t: #364151;
    --nav-bkg: rgba(13,17,23,0.6);
  }
}

[data-theme='dark'] {
    --shadow-color: rgba(0,0,0,0.2);
    --shadow-hover-color: rgba(0,0,0,0.28);
    --first-text-color: hsla(0,0%,100%,0.92);
    --second-text-color: hsla(0,0%,100%,0.86);
    --third-text-color: #a7a9ad;
    --default-text-color: #505050;
    --default-link-color: #1589e9;
    --link-color: #000000;
    --second-link-color: #30a9de;
    --post-bkg-color: #252d38;
    --page-bkg-color: #181c27;
    --nav-a-hover-color: #3498db;
    --post-sec-text-color: #a7a9ad;
    --sec-bkg: #364151;
    --bkg-h: rgba(255,255,255,0.2);
    --bkg-m: rgba(255,255,255,0.1);
    --home-title-color: rgb(226, 82, 90);
    --code-color:#3e4b5e;
    --shadow: none;
    --hr-color: #718096;
    --bg-t: #364151;
    --nav-bkg: rgba(13,17,23,0.6);
}

</style>



<style>
#page-main,footer,.p-btn{
    display: none;
}
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    /*height: 100%;*/
}
body {
    background-color: var(--page-bkg-color);
    color: var(--second-text-color);
    overflow-y: scroll;
    overflow-x: hidden;
    transition: all .3s;
}
a {
    color: var(--default-link-color);
    text-decoration: none;
    background-color: transparent;
}
a:hover{
    color: var(--second-link-color);
}
.main-content,.post-card-main{
    margin: 30px;
}



@media (max-width: 410px){
    .post-card-main{
        max-width: 350px!important;
    }
}

@media (max-width: 980px){
    .post-card-main{
        max-width: 520px!important;
    }
}


@media (min-width: 780px){ 
    h3{
        font-size: 1.5rem;
        line-height: 1.5em;
    }
}
@media (min-width: 1280px){ 
    h3{
        font-size: 1.7rem;
        line-height: 1.5em;
    }
}
@media (min-width: 2096px){ 
    h3{
        font-size: 1.8rem;
        line-height: 1.5em;
    }
}

.text-center{
    text-align: center!important;
}
.middle-center{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    height: 100%;
}
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    height: 54px;
    padding: 0 1.25rem;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    border-bottom: 1px solid var(--bkg-m);
    background-color: var(--nav-bkg);
    backdrop-filter: blur(4px);
    transition: all .3s;
}
header .header__left, header .header__right {
    display: flex;
    align-items: center;
    font-family: rubik,sans-serif,Varela Round;
}
header .header__left .logo__text {
    font-size: 18px;
    font-weight: 450;
    padding: 14.5px 10px;
    border-radius: 5px;
    color: var(--second-text-color);
}
header .header__right .navbar__menus {
    height: 54px;
    padding: 0 0 0 15px;
}
header .header__right .button {
    color: var(--second-text-color);
}
header .header__right .navbar__menus .navbar-menu {
    display: inline-block;
    align-items: center;
    height: 54px;
    padding: 0 10px;
    font-size: 16px;
    line-height: 54px;
}
header .header__right .dropdown-icon {
    display: none;
    height: 54px;
    padding: 15px 10px;
    border: 0;
    background-color: transparent;
}
header .header__right .dropdown-menus {
    line-height: 2rem;
    animation: slide-in .15s ease 1;
    display: none;
    position: absolute;
    left: 12px;
    right: 12px;
    top: calc(54px + 10px);
    border-radius: 6px;
    padding: 24px;
    background-color: var(--page-bkg-color);
    border: 1px solid var(--bkg-m);
    z-index: 9999;
    justify-items: center;
    justify-content: center;
    flex-direction: column;
}
header .header__right #btn-search, header .header__right #btn-toggle-dark{
    display: inline-block;
    padding:  18px 10px;
    height: 25px;
}
header .header__right #btn-dropdown{
  display: inline-block;
  padding:  13.5px 0;
}
header .header__right .dropdown-menus .dropdown-menu {
    padding: 10px;
    color: var(--second-text-color);
}
@media screen and (max-width: 764px){
.navbar__menus {
    display: none!important;
}
.dropdown-icon {
    display: inline-block!important;
}
}
.p-btn{
    position: fixed;
    bottom: 1.2rem;
    right: 1.2rem;
    contain: layout;
}
.toc-btn,.click-btn{
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    align-items: center;
    margin-top: .5rem;
    font-size: .75rem;
    background-color: var(--sec-bkg);
    display: block;
    padding: 0.9rem;
    box-shadow: 0 0.3rem 0.6rem rgba(48,55,66,.15);
    border: none;
    border-radius: 0.5rem;
    line-height: 1;
    color: var(--first-text-color);
}
.toc-link{
    color: var(--second-text-color);
}

#css-loading h3{
    font-weight: 500;
    font-size: 1.4rem;
    text-align: center;
    position: fixed;
    top: 200px;
    left: 0;
    right: 0;
    opacity: 0;
    animation: cssLoad;
    animation-delay: 0.3s;
    -webkit-animation: cssLoad;
    -webkit-animation-delay: 0.3s;
}
@keyframes cssLoad {
    from {
        opacity: 0;
    }
    to {
        opacity: 0.9;
    }
}


.memorial {
    -webkit-filter: grayscale(100%);
    -moz-filter: grayscale(100%);
    -ms-filter: grayscale(100%);
    -o-filter: grayscale(100%);
    filter: grayscale(100%);
    filter:progid:DXImageTransform.Microsoft.BasicImage(grayscale=1); filter:gray;
}


    .post-copyright:after {
        position: absolute;
        color: #fff;
        background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 496 512'%3E%3Cpath fill='gray' d='M245.8 214.9l-33.2 17.3c-9.4-19.6-25.2-20-27.4-20-22.2 0-33.3 14.6-33.3 43.9 0 23.5 9.2 43.8 33.3 43.8 14.4 0 24.6-7 30.5-21.3l30.6 15.5a73.2 73.2 0 01-65.1 39c-22.6 0-74-10.3-74-77 0-58.7 43-77 72.6-77 30.8-.1 52.7 11.9 66 35.8zm143 0l-32.7 17.3c-9.5-19.8-25.7-20-27.9-20-22.1 0-33.2 14.6-33.2 43.9 0 23.5 9.2 43.8 33.2 43.8 14.5 0 24.7-7 30.5-21.3l31 15.5c-2 3.8-21.3 39-65 39-22.7 0-74-9.9-74-77 0-58.7 43-77 72.6-77C354 179 376 191 389 214.8zM247.7 8C104.7 8 0 123 0 256c0 138.4 113.6 248 247.6 248C377.5 504 496 403 496 256 496 118 389.4 8 247.6 8zm.8 450.8c-112.5 0-203.7-93-203.7-202.8 0-105.5 85.5-203.3 203.8-203.3A201.7 201.7 0 01451.3 256c0 121.7-99.7 202.9-202.9 202.9z'/%3E%3C/svg%3E");
        content: ' ';
        height: 10rem;
        width: 10rem;
        right: -2rem;
        top: -2rem;
        opacity: .1;
    }

</style>

    

    
    
    <link rel="stylesheet" href="/css/main.css" media="print" onload="this.media='all';this.onload=null">
    <noscript>
        <link rel="stylesheet" href="/css/main.css">
    </noscript>

    
    <script src="/js/main.js"></script>
    
<meta name="generator" content="Hexo 7.0.0"></head>

    <body>
        <header>
            
<div class="header__left">
	<a href="/" class="button"><span class="logo__text">水中鱼</span></a>
</div>
<div class="header__right">
	<div class="navbar__menus">
		
		<a href="/" class="button">
			<div class="navbar-menu">首页</div>
		</a>
		
		<a href="/archives/" class="button">
			<div class="navbar-menu">归档</div>
		</a>
		
		<a href="/categories/" class="button">
			<div class="navbar-menu">分类</div>
		</a>
		
		<a href="/tags/" class="button">
			<div class="navbar-menu">标签</div>
		</a>
		
		<a href="/about/" class="button">
			<div class="navbar-menu">关于</div>
		</a>
		
	</div>
	
	<a href="/search/" class="button">
		<div id="btn-search">
			<svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 1024 1024" width="24" height="24" fill="currentColor"
				stroke="currentColor" stroke-width="32">
				<path
					d="M192 448c0-141.152 114.848-256 256-256s256 114.848 256 256-114.848 256-256 256-256-114.848-256-256z m710.624 409.376l-206.88-206.88A318.784 318.784 0 0 0 768 448c0-176.736-143.264-320-320-320S128 271.264 128 448s143.264 320 320 320a318.784 318.784 0 0 0 202.496-72.256l206.88 206.88 45.248-45.248z">
				</path>
			</svg>
		</div>
	</a>
	
	<a href="javaScript:void(0);" class="button" id="btn-toggle-dark">
		<div>
			<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewbox="0 0 24 24" fill="none"
				stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
				<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path>
			</svg>
		</div>
	</a>
	<a href="javaScript:void(0);" class="dropdown-icon button">
		<div id="btn-dropdown">
			<svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 1024 1024" width="24" height="24" fill="currentColor"
				stroke="currentColor" stroke-width="32" stroke-linecap="round">
				<path
					d="M903.43 561.52H148.8c-13.25 0-24-10.75-24-24s10.75-24 24-24h754.63c13.25 0 24 10.75 24 24s-10.75 24-24 24zM903.43 204.31H148.8c-13.25 0-24-10.75-24-24s10.75-24 24-24h754.63c13.25 0 24 10.75 24 24s-10.75 24-24 24zM903.43 918.73H148.8c-13.25 0-24-10.75-24-24s10.75-24 24-24h754.63c13.25 0 24 10.75 24 24s-10.75 24-24 24z"
					fill="currentColor"></path>
			</svg>
		</div>
	</a>
	<div class="dropdown-menus" id="dropdown-menus">
		
		<a href="/" class="dropdown-menu button">首页</a>
		<br>
		
		<a href="/archives/" class="dropdown-menu button">归档</a>
		<br>
		
		<a href="/categories/" class="dropdown-menu button">分类</a>
		<br>
		
		<a href="/tags/" class="dropdown-menu button">标签</a>
		<br>
		
		<a href="/about/" class="dropdown-menu button">关于</a>
		<br>
		
	</div>
</div>

        </header>
        <div id="top"></div>
        <div id="page-main" class="main-content">
        <div class="mg-top">
            
  <div id="index-banner" class="text-center middle-center">
    <div class="banner-text">
        <h3 id="banner-name">
            一 花 一 世 界 / 一 叶 一 追 寻
        </h3>
        <p class="slogan">
          每一个问题都是一把锁，你要相信世界上一定有一把钥匙能打开这把锁，你也能找到这把钥匙。
        </p>
    </div>
</div>


<div class="post-card-center">
<div class="post-card-main">

    
      <div class="index-card">
        
        <article class="index-card-info">
          <h3 class="index-header">
            <a href="/2024/04/16/0012/">
            
            thinkphp6在Apache下无法获取header头中的Authorization</a>
          </h3>
          <p class="index-excerpt">
              
              
                
              
              一个网站在nginx下可以正常获取header头中的Authorization，但是在Apache下无法获取，导致登录失败。
需要在.htaccess文件中添加以下配置：
1SetEnvIf Authorization .+ HTTP_AUTHORIZATION=$0

修改后的完整.htaccess文件如下：
12345678910&lt;IfModule mod_rewrite.c&gt;  
          </p>
          <div class="index-btm post-metas">
            
              
                <time datetime="2024-04-16 15:26" pubdate>
                  2024-04-16
                </time>
              
            
            
              
                
                  <span class="p-dot"></span><a href="/categories/thinkphp/">thinkphp</a>
                
              
            
          </div>
        </article>
      </div>
    
  
    
      <div class="index-card">
        
        <article class="index-card-info">
          <h3 class="index-header">
            <a href="/2024/04/13/0011/">
            
            vue项目部署到任意目录</a>
          </h3>
          <p class="index-excerpt">
              
              
                
              
              
把Vue项目部署到任意目录，就是把生成的dist文件夹中的文件放到任意目录，然后直接访问所在目录即可。
步骤1修改vue.config.js文件，修改publicPath属性，将其值设置为相对路径。
1publicPath: process.env.NODE_ENV === &#x27;production&#x27; ? &#x27;./&#x27; : &#x27;/&#x27;,

步骤2
          </p>
          <div class="index-btm post-metas">
            
              
                <time datetime="2024-04-13 15:21" pubdate>
                  2024-04-13
                </time>
              
            
            
              
                
                  <span class="p-dot"></span><a href="/categories/Vue/">Vue</a>
                
              
            
          </div>
        </article>
      </div>
    
  
    
      <div class="index-card">
        
        <article class="index-card-info">
          <h3 class="index-header">
            <a href="/2024/02/18/0010/">
            
            七所211大学拥有世界冠军学科！</a>
          </h3>
          <p class="index-excerpt">
              
              
                
              
              七所211大学拥有世界冠军学科！
一般来说，211大学在总体实力上不如985大学，但是某些211大学的某些学科实力却是非常强大，学科实力超越985大学也属正常。这在教育部学科评估中，就有体现。不过，一所211大学如果能坐拥世界冠军学科，那真当刮目相看了。
在2023年发布的2023软科世界一流学科排名中，我国高校共有17个学科位居世界第一。这其中，有10所是985全国重点大学，另外7所，则是211
          </p>
          <div class="index-btm post-metas">
            
              
                <time datetime="2024-02-18 10:11" pubdate>
                  2024-02-18
                </time>
              
            
            
          </div>
        </article>
      </div>
    
  
    
      <div class="index-card">
        
        <article class="index-card-info">
          <h3 class="index-header">
            <a href="/2024/01/24/0009/">
            
            全国第五轮学科评估</a>
          </h3>
          <p class="index-excerpt">
              
              
                
              
              2020年11月，教育部发布了《第五轮学科评估方案》。并在2022年7月，教育部官方就宣布，第五轮学科评估已经顺利完成。
第五轮学科评估部分院校名单“985”高校（部分）01 北京大学1、A+学科
哲学、应用经济学、理论经济学、政治学、社会学、马克思主义理论、心理学、中国语言文学、外国语言文学、考古学、中国史、世界史、数学、物理学、化学、天文学、地理学、大气科学、生物学、统计学、力学、计算机科学与
          </p>
          <div class="index-btm post-metas">
            
              
                <time datetime="2024-01-24 14:37" pubdate>
                  2024-01-24
                </time>
              
            
            
          </div>
        </article>
      </div>
    
  
    
      <div class="index-card">
        
        <article class="index-card-info">
          <h3 class="index-header">
            <a href="/2024/01/16/0008/">
            
            uniapp如何通过手指滑动事件判断/获取 左滑右滑上滑下滑 等手势事件</a>
          </h3>
          <p class="index-excerpt">
              
              
                
              
              uniapp如何通过手指滑动事件判断&#x2F;获取 左滑右滑上滑下滑 等手势事件
          </p>
          <div class="index-btm post-metas">
            
              
                <time datetime="2024-01-16 15:20" pubdate>
                  2024-01-16
                </time>
              
            
            
              
                
                  <span class="p-dot"></span><a href="/categories/uniapp/">uniapp</a>
                
              
            
          </div>
        </article>
      </div>
    
  
    
      <div class="index-card">
        
        <article class="index-card-info">
          <h3 class="index-header">
            <a href="/2024/01/16/0007/">
            
            uniapp自定义底部tabbar(无闪烁)</a>
          </h3>
          <p class="index-excerpt">
              
              
                
              
              uniapp自定义底部tabbar(无闪烁)
          </p>
          <div class="index-btm post-metas">
            
              
                <time datetime="2024-01-16 15:13" pubdate>
                  2024-01-16
                </time>
              
            
            
              
                
                  <span class="p-dot"></span><a href="/categories/uniapp/">uniapp</a>
                
              
            
          </div>
        </article>
      </div>
    
  
    
      <div class="index-card">
        
        <article class="index-card-info">
          <h3 class="index-header">
            <a href="/2024/01/16/0006/">
            
            elementui el-table单元格重复数据自动合并</a>
          </h3>
          <p class="index-excerpt">
              
              
                
              
              el-table单元格合并
          </p>
          <div class="index-btm post-metas">
            
              
                <time datetime="2024-01-16 14:48" pubdate>
                  2024-01-16
                </time>
              
            
            
              
                
                  <span class="p-dot"></span><a href="/categories/elementui/">elementui</a>
                
              
            
          </div>
        </article>
      </div>
    
  
    
      <div class="index-card">
        
        <article class="index-card-info">
          <h3 class="index-header">
            <a href="/2024/01/16/0005/">
            
            宝塔面板报错“SSL certificate problem: certificate has expired”</a>
          </h3>
          <p class="index-excerpt">
              
              
                
              
              维护的一个网站突然出现问题，后端php调用外部接口时，提示错误”AWS HTTP error: cURL error 60: SSL certificate problem: certificate has expired”,开始怀疑是接口的问题，本地测试后发现接口可以正常调用，网站在本地测试环境也可以正常运行，仔细排查后发现是服务器上SSL根证书的问题
          </p>
          <div class="index-btm post-metas">
            
              
                <time datetime="2024-01-16 14:38" pubdate>
                  2024-01-16
                </time>
              
            
            
              
                
                  <span class="p-dot"></span><a href="/categories/%E5%AE%9D%E5%A1%94%E9%9D%A2%E6%9D%BF/">宝塔面板</a>
                
              
            
          </div>
        </article>
      </div>
    
  
    
      <div class="index-card">
        
        <article class="index-card-info">
          <h3 class="index-header">
            <a href="/2024/01/16/0004/">
            
            thinkphp6+vue3部署在一个站点(最终版本)</a>
          </h3>
          <p class="index-excerpt">
              
              
                
              
              thinkphp6和VUE3分别有自己的路由处理，所在部署在一个站点时，会出现路由冲突的问题
          </p>
          <div class="index-btm post-metas">
            
              
                <time datetime="2024-01-16 14:06" pubdate>
                  2024-01-16
                </time>
              
            
            
              
                
                  <span class="p-dot"></span><a href="/categories/thinkphp/">thinkphp</a>
                
              
            
          </div>
        </article>
      </div>
    
  
    
      <div class="index-card">
        
        <article class="index-card-info">
          <h3 class="index-header">
            <a href="/2024/01/16/0003/">
            
            thinkphp6/8+vue+axios 跨域问题</a>
          </h3>
          <p class="index-excerpt">
              
              
                
              
              使用thinkphp6&#x2F;8做为后端API开发，前端使用vue+axios时，有时候会遇到复杂的请求，需要后端处理OPTIONS请求，但是thinkphp路由直接拒绝了options请求，网上查了很多都就用中间件解决，经过测试，一般情况下，如果遇到跨域问题是可以使用是间件解决，但是复杂的POST请求会先发送一个OPTION请求，这时候就不行了
          </p>
          <div class="index-btm post-metas">
            
              
                <time datetime="2024-01-16 13:59" pubdate>
                  2024-01-16
                </time>
              
            
            
              
                
                  <span class="p-dot"></span><a href="/categories/thinkphp/">thinkphp</a>
                
              
            
          </div>
        </article>
      </div>
    
  
</div>
</div>

    <nav aria-label="navigation">
      <span class="pagination" id="pagination">
        <span class="page-number current">1</span><a class="page-number" href="/page/2/">2</a><a class="extend next" rel="next" href="/page/2/">&gt;</a>
      </span>
    </nav>

        </div>
        
<footer class="text-center">
    
    
    
    
    
    <p>&copy;  2024 - 2024&nbsp;&nbsp;zsh0409</p>
    
    <p>Powered by <a href="https://hexo.io" target="_blank">Hexo</a> | Theme by <a href="https://github.com/oCoke/hexo-theme-miracle" target="_blank">Miracle</a></p>
    
    
</footer>

<div class="p-btn">
    
    
    <a href="javascript:window.scrollTo({top:0,behavior:'smooth'});" class="click-btn">
      <i id="i-up"></i>
    </a>
</div>

<!-- SCRIPTS -->






<script>
    document.getElementById("btn-dropdown").addEventListener('click', () => {
      toggleClass("#dropdown-menus","display-inline");
    });
    console.log('\n' + ' %c Powered by Hexo Theme Miracle ' + ' %c https://github.com/oCoke/hexo-theme-miracle ' + '\n' + '\n', 'color: #fff; background: #4F9BFA; padding:5px 0;', 'background: #FFF; padding:5px 0;');

    

    
  /* 小彩蛋: 饮茶先啦 */
  setTimeout(() => {
    var time = new Date();
    if (time.getHours() == 15) {
      let comment = document.createComment(' 三点几嚟！饮茶先啦！ ');
      document.body.insertBefore(comment, document.getElementsByTagName('header')[0]);
    }
  },1);
    
</script>

















        </div>
        <div id="css-loading">
            <h3 class="text-center">加载中...</h3>
        </div>
        
    </body>
</html>
